<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="{url('admin/default/welcome')}">开始</a> / 
    <a href="{url('service/index')}">换新管理</a>
</div>
<div class="table-head fn-clear">
    <div class="fn-l">
        <a href="{url('service/edit',array('id'=>$id))}" class="button">
            <i class="iconfont icon-xiangzuo1"></i> 返回
        </a>
    </div>
</div>
<div class="m10">
<form id="form" action="{url('service/bom')}">
<input type="hidden" name="id" value="{$id}"/>   
<table class="table table-border">
    <tr class="bg-f5">
      <th width="100">跟踪号:</th>
      <td width="100">{$info['number']}</td>
      <th width="100">IMEI号:</th>
      <td>{$info['imei']}</td>
      <th width="100">入库时间:</th>
      <td>
        {if $info['add_time']}{date('Y-m-d H:i',$info['add_time'])}{/if}
      </td>
    </tr>
    <tr class="bg-f5">
      <th>客户描述故障:</th>
      <td colspan="5">{$info['fault_why']}</td>
    </tr>
    <tr>
      <th>故障级别:</th>
      <td colspan="5">
<select class="select" name="fault_level" datatype="*">
    <option value="" {if !$info['fault_level']} selected="selected"{/if}></option>
    <option value="L0" {if $info['fault_level'] =='L0'} selected="selected"{/if}>L0</option>
    <option value="L1" {if $info['fault_level'] =='L1'} selected="selected"{/if}>L1</option>
    <option value="L1+" {if $info['fault_level'] =='L1+'} selected="selected"{/if}>L1+</option>
    <option value="L2" {if $info['fault_level'] =='L2'} selected="selected"{/if}>L2</option>
</select>
      </td>
    </tr> 
    <tr>
      <th>故障类型:</th>
      <td colspan="5">
{loop $faulttype_lists $rs}
            <table class="table">
                <tr>
                    <td class="w200 fn-tar bg-f5 fn-f14">{htmlspecialchars_decode($rs['about'])}</td>
                    <td>
{loop $rs['list'] $k $vo}
    <input type="checkbox" name="faulttype[{$rs['id']}][]" value="{$vo['id']}" {if in_array($vo['id'],$faulttype_id)}checked{/if} /> {htmlspecialchars_decode($vo['about'])}&nbsp;&nbsp;&nbsp;&nbsp;
{/loop}
                    </td>
                </tr>
            </table> 
 {/loop} 
      </td>
    </tr>
    <tr>
      <th>出货员:</th>
      <td colspan="5">
        <input class="input w100 gray-input" readonly="readonly" datatype="*" type="text" name="service_admin_name" value="{if $info['service_admin_name']}{$info['service_admin_name']}{else}{$userInfo['username']}{/if}" />
      </td>
    </tr>
    <tr>
      <th>新机IMEI号:</th>
      <td colspan="5"><input class="input w200" datatype="n" type="text" name="new_imei" value="" /></td>
    </tr> 
    <tr>
      <th>发件快递单号:</th>
      <td colspan="5">
        <input class="input w150" datatype="n" type="text" name="outwarehouse_ems_sn" value="" />
      </td>
    </tr>
    <tr>
      <th>换新发件时间:</th>
      <td colspan="5">
        <input class="input w150 ui-time" datatype="date" type="text" name="out_time" value="" readonly="readonly" />
      </td>
    </tr>
    <tr>
      <th>发件地址:</th>
      <td colspan="5">
        <input class="input w300" datatype="*" type="text" name="outwarehouse_address" value="{$info['come_address']}" />
      </td>
    </tr>
</table>
<div class="btn fn-tac">
    <input type="submit" value="确认提交维修单" class="button" />
    <a href="{url('service/edit',array('id'=>$id))}" class="button button-yellow">
          <i class="iconfont icon-xiangzuo1"></i> 返回
    </a>
</div>
</form>
<script type="text/javascript">
Do('base','form','date','dialog',function(){ 
    $('#form').forms();
})
</script>